#include<bits/stdc++.h>
using namespace std;
int main()
{
	int m, n, x;
	long long success;
	cin>>n>>m>>success;
	vector<int> spells, potions;
	for(int i = 1;i <= n;i++)
	{
		cin>>x;
		spells.push_back(x);
	}
	for(int i = 1;i <= m;i++)
	{
		cin>>x;
		potions.push_back(x);
	}
	
	sort(potions.begin(), potions.end());

	vector<int> ans;
	for(int i = 0;i < n;i++)
	{
		int index = lower_bound(potions.begin(), potions.end(), (double)success/spells[i])-potions.begin();
		ans.push_back(m-index);
	}
	for(auto i:ans)
		cout<<i<<" ";
	return 0;
}

